#!/usr/bin/python
#
# Copyright (C) 2008 rambla.be
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

try:
  from xml.etree import cElementTree as ElementTree
except ImportError:
  try:
    import cElementTree as ElementTree
  except ImportError:
    from elementtree import ElementTree

import atom
import rawsc
from rawsc import RAWS_NAMESPACE

class Params(rawsc.RawsBaseElement):
    """The RASE params element"""
    _tag = 'params'

def ParamsFromString(xml_string):
    return atom.CreateClassFromXMLString(Params, xml_string)

class Media(rawsc.RawsBaseElement):
    """The RASE params element"""
    _tag = 'media'

def MediaFromString(xml_string):
    return atom.CreateClassFromXMLString(Media, xml_string)

class NrOfPorts(rawsc.RawsBaseElement):
    """The RASE Profile NrOfPorts element"""
    _tag = 'nr_of_ports'

def NrOfPortsFromString(xml_string):
    return atom.CreateClassFromXMLString(NrOfPorts, xml_string)


class Description(rawsc.RawsBaseElement):
    """The RASE description element"""
    _tag = 'description'

def DescriptionFromString(xml_string):
    return atom.CreateClassFromXMLString(Description, xml_string)


class Id(rawsc.RawsBaseElement):
    """The RASE id element"""
    _tag = 'id'

def IdFromString(xml_string):
    return atom.CreateClassFromXMLString(Id, xml_string)


class Portnrs(rawsc.RawsBaseElement):
    _tag = 'portnrs'

def PortnrsFromString(xml_string):
    return atom.CreateClassFromXMLString(Portnrs, xml_string)


class Status(rawsc.RawsBaseElement):
    _tag = 'status'

def StatusFromString(xml_string):
    return atom.CreateClassFromXMLString(Status, xml_string)


class Filename(rawsc.RawsBaseElement):
    _tag = 'filename'

def FilenameFromString(xml_string):
    return atom.CreateClassFromXMLString(Filename, xml_string)


class MacAddress(rawsc.RawsBaseElement):
    _tag = 'mac_address'

def MacAddressFromString(xml_string):
    return atom.CreateClassFromXMLString(MacAddress, xml_string)


class IpAddress(rawsc.RawsBaseElement):
    _tag = 'ip_address'

def IpAddressFromString(xml_string):
    return atom.CreateClassFromXMLString(IpAddress, xml_string)


class Port(rawsc.RawsBaseElement):
    _tag = 'port'

def PortFromString(xml_string):
    return atom.CreateClassFromXMLString(Port, xml_string)


class Portnr(rawsc.RawsBaseElement):
    _tag = 'portnr'

def PortnrFromString(xml_string):
    return atom.CreateClassFromXMLString(Portnr, xml_string)

class Wowapp(rawsc.RawsBaseElement):
    _tag = 'wowapp'

def WowappFromString(xml_string):
    return atom.CreateClassFromXMLString(Wowapp, xml_string)


class StreamUri(rawsc.RawsBaseElement):
    _tag = 'stream_uri'

def StreamUriFromString(xml_string):
    return atom.CreateClassFromXMLString(StreamUri, xml_string)


class StreamLoc(rawsc.RawsBaseElement):
    _tag = 'stream_loc'

def StreamLocFromString(xml_string):
    return atom.CreateClassFromXMLString(StreamLoc, xml_string)


class Name(rawsc.RawsBaseElement):
    _tag = 'name'

def NameFromString(xml_string):
    return atom.CreateClassFromXMLString(Name, xml_string)


class StreamType(rawsc.RawsBaseElement):
    _tag = 'stream_type'

def StreamTypeFromString(xml_string):
    return atom.CreateClassFromXMLString(StreamType, xml_string)


class MasterUri(rawsc.RawsBaseElement):
    _tag = 'master_uri'

def MasterUriFromString(xml_string):
    return atom.CreateClassFromXMLString(MasterUri, xml_string)


class BroadcastDomain(rawsc.RawsBaseElement):
    _tag = 'broadcast_domain'

def BroadcastDomainFromString(xml_string):
    return atom.CreateClassFromXMLString(BroadcastDomain, xml_string)


class BroadcastIp(rawsc.RawsBaseElement):
    _tag = 'broadcast_ip'

def BroadcastIpFromString(xml_string):
    return atom.CreateClassFromXMLString(BroadcastIp, xml_string)


class BroadcastBackupDomain(rawsc.RawsBaseElement):
    _tag = 'broadcast_backup_domain'

def BroadcastBackupDomainFromString(xml_string):
    return atom.CreateClassFromXMLString(BroadcastBackupDomain, xml_string)

class BroadcastBackupIp(rawsc.RawsBaseElement):
    _tag = 'broadcast_backup_ip'

def BroadcastBackupIpFromString(xml_string):
    return atom.CreateClassFromXMLString(BroadcastBackupIp, xml_string)

